<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ taglib prefix="aa" uri="http://ajaxanywhere.sourceforge.net/"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN" "http://www.w3.org/TR/htmL1/DTD/xhtml1-transitional.dtd">

<!--
/***********************************************
* 파일명   : dept_mgr_list.jsp
* 기  능      : 부서관리-결 과조회 LIST
* 최초 작성일 : 2009/01/14
* @author : Yang D
*************************************************
-->
<html>
<head></head>
<body>
            <!----------Tbl_info & Table box ------>
            <div id="tbl_info_box">
            <ul>
                <li class="txt"><b>조회 건수 :</b> <s:property value="rowCount"/></li>
            </ul>
            </div>
        <aa:zone name="listTable">
            <display:table id="row" name="list" uid="row" class="parking_tbl" requestURI="dept_mgr_list.action" class="enterpriseinfo_tbl">
                <display:setProperty name="basic.msg.empty_list" value="조회된 데이터가 없습니다."/>
                <display:column title="사업그룹코드"  sortable="true">
                	<s:if test="#attr.row.upper_dept_no == #attr.row.dept_no">
                		<a onmouseover="this.style.cursor='pointer'" onclick="fnc_reg_mod_group_dept(<s:property value="#attr.row.upper_dept_no" /> , <s:property value="#attr.row.dept_no" />)"><font color="blue"><s:property value="#attr.row.upper_dept_no" /></font></a>
                	</s:if>
                	<s:else>
                		<s:property value="#attr.row.upper_dept_no" />
                	</s:else>
                </display:column> 
                <display:column title="사업그룹명"    sortable="true"    property="upper_dept_nm" ></display:column>
                <display:column title="부서코드"      sortable="true">
                	<s:if test="#attr.row.upper_dept_no != #attr.row.dept_no">
	                	<a onmouseover="this.style.cursor='pointer'" onclick="fnc_mod_team_dept(<s:property value="#attr.row.upper_dept_no" /> , <s:property value="#attr.row.dept_no" />)"><font color="green"><s:property value="#attr.row.dept_no" /></font></a>
                	</s:if>
                	<s:else>
	                	<s:property value="#attr.row.dept_no" />
                	</s:else>
                </display:column>
                <display:column title="부서명"        sortable="true"    property="dept_nm" ></display:column>
    
                <s:if test='#attr.row.use_yn == "N"'>
	                <display:column title="사용여부"   sortable="true"  ><font color="red"><s:property value="#attr.row.use_yn"/></font></display:column>
                </s:if>
                <s:else>
                 	<display:column title="사용여부"   sortable="true"  ><font color="black"><s:property value="#attr.row.use_yn"/></font></display:column>               	
                </s:else>
                <s:hidden name="use_yn" />
            </display:table>
        </aa:zone>  
        <input type="hidden"  name="upper_dept_no" />
		<!----------Tbl_info & Table box ------>
        <!-- 페이징 Start -->
        <div class="pagination">
            <s:property value="pDao.html" escape="false"/>
        </div>  
            <!-- // 페이징 End -->
</body>
<script src="inc/js/ajaxCommon.js"></script>
</html>